export default {

    getPic(url) {
        if (!url) return ''
        //if(url.indexOf('http')!==-1) return url
        if (url[0] === '/') {
            url = url.slice(1)
        }
        url = url.replaceAll('\\', '/');
        return 'http://admin.ruiwuxian.vip/api/storage/' + url
        // return 'http://192.168.1.2:8018/storage/' + url
    },
}
